package com.cango.student.database.mybatis;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AtomikosSpringMybatisExample {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-atomikos.xml");
        JTAService jtaService = context.getBean("jtaService", JTAService.class);
        jtaService.insert();
    }
}
